package com.art8173.advanced.day2.Test1;

public class Breeder extends  Animal{

    @Override
    public void drink() {
        System.out.println("breeder drink");
    }

    @Override
    public void eat() {
        System.out.println("breeder eat");
    }
    public void breed(Animal  animal){
        animal.drink();
        animal.eat();
    }
}
